import request from '@/utils/request'

// 查询自定义单列表
export function listCustomForm(query) {
  return request({
    url: '/oa/customForm/list',
    method: 'get',
    params: query
  })
}
export function listAllCustomForm(query) {
    return request({
        url: '/oa/customForm/listAll',
        method: 'get',
        params: query
    })
}
// 查询自定义单详细
export function getCustomForm(id) {
  return request({
    url: '/oa/customForm/' + id,
    method: 'get'
  })
}

// 新增自定义单
export function addCustomForm(data) {
  return request({
    url: '/oa/customForm',
    method: 'post',
    data: data
  })
}

// 修改自定义单
export function updateCustomForm(data) {
  return request({
    url: '/oa/customForm',
    method: 'put',
    data: data
  })
}



// 删除自定义单
export function delCustomForm(id) {
  return request({
    url: '/oa/customForm/' + id,
    method: 'delete'
  })
}
